﻿GoToPage(1, "pageHtml");
function GoToPage(pageindex, pagehtml) {
    $.ajax({
        url: "/hospital/T_Doctoryisheng",
        type: "post",
        data: { pageindex: pageindex, pagesize: 5 },
        success: function (data) {
            var str = "";
            for (var i = 0; i < data.Itemlist.length; i++) {
                str += " <tr>";
                str += "   <td><img src=\"" + data.Itemlist[i].Doctor_Image + "\"  style=\"width:50px;height:50px\"/></td>";
                str += "   <td>" + data.Itemlist[i].Doctor_Name + "</td>";
                str += "   <td>" + data.Itemlist[i].Doctor_Message + "</td>";
                str += "   <td>" + data.Itemlist[i].Doctor_Get + "</td>";
                str += "   <td>" + data.Itemlist[i].Doctor_Phone + "</td>";
                str += "   <td><input id=\"Button1\" type=\"button\" value=\"挂号\"  class=\"btn btn-primary\" onclick=\"yishengguahao()\"/></td>";
                str += " </tr>";
            }
            $("#tfootid").html(str);
            GetpageHtml(data.totalcount, pageindex, pagehtml)
        }
    })
} function yishengguahao() {
    layer.open({
        type: 2,
        shade: 0.5,
        title: false, //不显示标题
        area: ['800px', '600px'],
        content: "/HospitalInfo/Index",
    })
}